const roots = document.querySelector('#root');
const e = React.createElement;

function LikeButton() {
    return e('button',
        { onClick: () => this.setState({ liked: true }) },
        'Like');
}

ReactDOM.render(e(LikeButton),roots);